/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.tsdemo.entity.module;

import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.fosung.frame.common.persistence.DataEntity;
import com.google.common.collect.Lists;

/**
 * 模块结构表Entity
 * @author zhaofj
 * @version 2017-07-05
 */
public class Module extends DataEntity<Module> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名字
	private String img;		// 图片
	private String modelIds;		// 行业编号
	private String levelIds;		// 层级编号
	private Date updateDate;		//更新时间
	private String officeGroup;		// 办公模块
	private List<String> modelIdsList=Lists.newArrayList(); 
	private List<String> levelIdsList=Lists.newArrayList(); 
	
	public Module() {
		super();
	}

	public Module(String id){
		super(id);
	}

	@Length(min=0, max=255, message="名字长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getOfficeGroup() {
		return officeGroup;
	}

	public void setOfficeGroup(String officeGroup) {
		this.officeGroup = officeGroup;
	}

	@Length(min=0, max=255, message="行业编号长度必须介于 0 和 255 之间")
	public String getModelIds() {
		return modelIds;
	}

	public void setModelIds(String modelIds) {
		this.modelIds = modelIds;
	}
	
	@Length(min=0, max=255, message="层级编号长度必须介于 0 和 255 之间")
	public String getLevelIds() {
		return levelIds;
	}

	public void setLevelIds(String levelIds) {
		this.levelIds = levelIds;
	}

	public List<String> getModelIdsList() {
		return modelIdsList;
	}

	public void setModelIdsList(List<String> modelIdsList) {
		this.modelIdsList = modelIdsList;
	}

	public List<String> getLevelIdsList() {
		return levelIdsList;
	}

	public void setLevelIdsList(List<String> levelIdsList) {
		this.levelIdsList = levelIdsList;
	}	
	
}